<template>
  <div class="list_url-info">
    <slot name="list_url_info"></slot>
    <div class="flex" style="justify-content: flex-end;flex-wrap: wrap;">
      <el-button @click="$parent.show_search = !$parent.show_search" v-if="Object.keys($parent.config.forms_config).length">{{$parent.show_search?'收起':'展开'}}搜索</el-button>
      <el-button v-for="row in this_btns" :type="row.type" :size="row.size" @click="row.onclick">{{ row.title }}</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "list_url_info",
  props: ['btns'],
  computed: {
    this_btns(){
      return this.decode_btns(this.btns);
    }
  },
}
</script>

<style scoped>

</style>